package com.xwj.service.Interface;

import com.github.pagehelper.PageInfo;
import com.sun.org.apache.xpath.internal.operations.Bool;
import com.xwj.dto.HouseInfoDto;
import com.xwj.entity.RaHourseInfo;

import java.util.List;
import java.util.Map;
import java.util.concurrent.Future;

public interface RaHouseInfoService {

    List<RaHourseInfo> findAllHouseInfo();

    PageInfo<RaHourseInfo> findHouseInfoByCloudId(int pageIndex, int pageSize, int cloudId);

    PageInfo<RaHourseInfo> frontFindHouseInfoByCloudId(int pageIndex, int pageSize, int cloudId);

    List<RaHourseInfo> frontFindHouseInfoByCloudIdWithNoPage(int cloudId);

    int deleteByIds(List<String> ids);

    int updateProperty(HouseInfoDto houseInfoDto);

    Future<Boolean> updatePropertySync(HouseInfoDto houseInfoDto);

    PageInfo<RaHourseInfo> findByProperty(int pageIndex, int pageSize, HouseInfoDto houseInfoDto);

    int insertOneHouse(RaHourseInfo raHourseInfo);

    int updateDetail(Map<String, Object> map);

    RaHourseInfo findHouseInfoById(String id);

    RaHourseInfo findHouseInfoByIdSync(String id);

    PageInfo<RaHourseInfo> findHouseInfoByUserId(int pageIndex, int pageSize, String userId);

    PageInfo<RaHourseInfo> frontFindByProperty(int pageIndex, int pageSize, HouseInfoDto houseInfoDto);

    Future<Boolean> updateDelflag(List<String> ids);

    Future<Boolean> updateStatus(Map<String, Object> map);
}
